﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SnmpForm.BusinessWrapper.Types
{
    public class GroupInfo
    {
        public GroupInfo()
        {
        }
        public GroupInfo(int _id, string _name)
        {
            id = _id;
            name = _name;
        }
        public int id;
        public string name;
    }



    //系统用户菜单权限表
    public class Privilege
    {
        //
        static public bool CheckPermision(object target, int role)
        {
            bool[] permision = (bool[])target;
            return permision[role];
        }
        //AP管理界面
        public class ManageAP
        {
            //AP工作模式
            public class ApWorkingMode
            {
                public static bool[] permision = { true, true, true };
                public class Save
                {
                    public static bool[] permision = { false, true, true };
                }
            }
            //WAN口设置设置
            public class Wan
            {
                public static bool[] permision = { true, true, true };
                public class Save
                {
                    public static bool[] permision = { false, true, true };
                }
            }
            //AP DHCP设置
            public class ApDhcp
            {
                public static bool[] permision = { true, true, true };
                public class Save
                {
                    public static bool[] permision = { false, true, true };
                }
            }
            //AP无线设置
            public class Wlan
            {
                public static bool[] permision = { true, true, true };
                //基本设置
                public class WlanBasic
                {
                    public static bool[] permision = { true, true, true };
                    public class Save
                    {
                        public static bool[] permision = { false, true, true };
                    }
                }
                //高级设置
                public class WlanAdvance
                {
                    public static bool[] permision = { true, true, true };
                    public class Save
                    {
                        public static bool[] permision = { false, true, true };
                    }
                }
                //安全设置
                public class WlanSecure
                {
                    public static bool[] permision = { true, true, true };
                    public class Save
                    {
                        public static bool[] permision = { false, true, true };
                    }
                }
                //客户端列表
                public class WlanClientList
                {
                    public static bool[] permision = { true, true, true };
                }
            }
            //AP有线设置
            public class Lan
            {
                public static bool[] permision = { true, true, true };
                public class Save
                {
                    public static bool[] permision = { false, true, true };
                }
            }
            //高级工具
            public class AdvanceTools
            {
                public static bool[] permision = { true, true, true };
                public class LedLight
                {
                    public static bool[] permision = { true, true, true };
                    public class Save
                    {
                        public static bool[] permision = { false, true, true };
                    }
                }
            }
            //AP系统管理
            public class SystemManage
            {
                public static bool[] permision = { false, true, true };
                //固件升级
                public class UpdateSystem
                {
                    public static bool[] permision = { false, true, true };
                }
                //WEB登入账户修改
                public class LoginPassword
                {
                    public static bool[] permision = { false, true, true };
                }
                //Snmp安全托管密码
                public class SnmpTrust
                {
                    public static bool[] permision = { false, true, true };
                }
            }
            //查看托管AP信息
            public class TrustInfo
            {
                public static bool[] permision = { true, true, true };
            }
            //修改托管信息
            public class TrustModify
            {
                public static bool[] permision = { false, true, true };
            }
            //添加托管AP
            public class TrustAdd
            {
                public static bool[] permision = { false, true, true };
            }
            //删除托管AP
            public class TrustDel
            {
                public static bool[] permision = { false, true, true };
            }
            //AP列表批量操作
            public class ApList
            {
                public static bool[] permision = { true, true, true };
                public class Load
                {
                    public static bool[] permision = { false, true, true };
                }
                public class Export
                {
                    public static bool[] permision = { true, true, true };
                }
                public class Template
                {
                    public static bool[] permision = { false, true, true };
                }
            }
            //AP设备信息同步到数据库中
            public class SyncApInfo
            {
                public static bool[] permision = { false, true, true };
            }
        }
        //AP搜索界面
        public class SearchAP
        {
            public static bool[] permision = { true, true, true };
            //添加到托管列表
            public class AddToTurst
            {
                public static bool[] permision = { false, true, true };
            }
            public class SearchTarget
            {
                public class Add
                {
                    public static bool[] permision = { false, true, true };
                }
            }
        }
        //系统管理
        public class SystemManage{
            public static bool[] permision = { false, false, true };
            //系统用户管理
            public class SysUserManager
            {
                public static bool[] permision = { false, false, true };
            };
            //系统设置
            public class SystemConfig
            {
                public static bool[] permision = { false, false, true };
            }
            //系统日志
            public class SystemLog
            {
                public static bool[] permision = { true, true, true };
            }
        }
    }
}
